package com.yuan.java枚举类型;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import java.util.ArrayList;
import java.util.List;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum TestEnum {
    RED("红色"),
    GREEN("绿色"),
    BLUE("蓝色"),
    YELLOW;

    private String Coloe;
    //进行测试
    public static void main(String[] args) {
        System.out.println(TestEnum.RED);
        System.out.println(TestEnum.GREEN);
        System.out.println(TestEnum.BLUE);
        System.out.println(TestEnum.YELLOW);

        System.out.println(TestEnum.BLUE.getColoe());

        System.out.println(TestEnum.RED.getColoe());

        List<?> list = new ArrayList<>();

        System.out.println(list);

    }
}
